from qqbot import QQBotSlot as qqbotslot,RunBot

@qqbotslot
def onQQMessage(bot,contact,member,content):

    if content == '-hello':
        bot.SendTo(contact,'你好')
    elif content=='-stop':
        bot.SendTo(contact,'机器人已关闭')
        bot.Stop()

if __name__=='__main__':
    RunBot()

